package com.milk.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.milk.system.enums.MerchantStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单信息表 分页VO
 *
 * @author milk
 * @since 2024-05-04
 */
@Data
@Builder
@Schema(description = "订单信息表分页视图对象")
public class OrdersPageVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单唯一标识")
    private Long id;

    @Schema(description = "订单日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime orderDate;

    @Schema(description = "客户姓名")
    private String customerName;

    @Schema(description = "客户邮箱")
    private String customerEmail;

    @Schema(description = "商家名称")
    private String merchantName;

    @Schema(description = "订单状态")
    private MerchantStatusEnum orderStatus;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedTime;


}
